package HomeWork.work11;

/**
 * @author banana
 */
public class Work11 {
    private String name;
    private int stuid;
    public void setName(String name1){
        name=name1;
    }
    public String getName(){
        return name;
    }
    public void setStuid(int id){
        if(id<=0){
            System.out.println("...");
        }else if(id>=37){
            System.out.println("...");
        }else {
            stuid=id;
        }
    }
    public int getStuid(){
        return stuid;
    }

    public void like(){
        System.out.println(name+"喜欢打代码");
    }
    public void sc(){
        System.out.println(name+"超喜欢学习！！");
    }
}
